home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx" Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX" Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx" Begin VB.Form frmSetup BorderStyle = 3 'Fixed Dialog Caption = "Setup" ClientHeight = 3345 ClientLeft = 45 ClientTop = 330 ClientWidth = 5775 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3345 ScaleWidth = 5775 ShowInTaskbar = 0 'False StartUpPosition = 1 'CenterOwner Begin TabDlg.SSTab SSTab1 Height = 3240 Left = 0 TabIndex = 0 Top = 45 Width = 5805 _ExtentX = 10239 _ExtentY = 5715 _Version = 393216 Style = 1 Tabs = 5 Tab = 4 TabsPerRow = 5 TabHeight = 529 TabCaption(0) = "System" TabPicture(0) = "frmSetup.frx":0000 Tab(0).ControlEnabled= 0 'False Tab(0).Control(0)= "Label4" Tab(0).Control(1)= "udUR" Tab(0).Control(2)= "Frame3" Tab(0).Control(3)= "chExtraInfo" Tab(0).Control(4)= "tUR" Tab(0).Control(5)= "Frame2" Tab(0).ControlCount= 6 TabCaption(1) = "Scales" TabPicture(1) = "frmSetup.frx":001C Tab(1).ControlEnabled= 0 'False Tab(1).Control(0)= "Frame11" Tab(1).Control(1)= "Frame1" Tab(1).Control(2)= "Frame4" Tab(1).Control(3)= "Frame5" Tab(1).ControlCount= 4 TabCaption(2) = "Colors" TabPicture(2) = "frmSetup.frx":0038 Tab(2).ControlEnabled= 0 'False Tab(2).Control(0)= "lstColors" Tab(2).Control(1)= "cmdColorChoice" Tab(2).Control(2)= "Color" Tab(2).ControlCount= 3 TabCaption(3) = "Data" TabPicture(3) = "frmSetup.frx":0054 Tab(3).ControlEnabled= 0 'False Tab(3).Control(0)= "udSmooth" Tab(3).Control(1)= "tSmooth" Tab(3).Control(2)= "chSmooth" Tab(3).Control(3)= "Label6" Tab(3).Control(4)= "Label5" Tab(3).ControlCount= 5 TabCaption(4) = "Recording" TabPicture(4) = "frmSetup.frx":0070 Tab(4).ControlEnabled= -1 'True Tab(4).Control(0)= "Frame7" Tab(4).Control(0).Enabled= 0 'False Tab(4).Control(1)= "Frame8" Tab(4).Control(1).Enabled= 0 'False Tab(4).Control(2)= "Frame6" Tab(4).Control(2).Enabled= 0 'False Tab(4).ControlCount= 3 Begin VB.Frame Frame11 Caption = "Markers" Height = 870 Left = -72060 TabIndex = 72 Top = 2205 Width = 2685 Begin VB.CheckBox chMB Caption = "Bar Enabled" Height = 285 Left = 180 TabIndex = 74 Top = 240 Width = 1755 End Begin VB.CheckBox chMS Caption = "Background Enabled" Height = 285 Left = 180 TabIndex = 73 Top = 480 Width = 2415 End End Begin VB.Frame Frame6 Caption = "Visualization Type" Height = 705 Left = 3420 TabIndex = 69 Top = 2205 Width = 2265 Begin VB.OptionButton opRecVisType Caption = "Type 1" Height = 240 Index = 1 Left = 180 TabIndex = 71 Top = 315 Value = -1 'True Width = 975 End Begin VB.OptionButton opRecVisType Caption = "Type 2" Height = 240 Index = 2 Left = 1260 TabIndex = 70 Top = 315 Width = 885 End End Begin VB.Frame Frame2 Caption = "Play/Record Buffer" Height = 735 Left = -74865 TabIndex = 37 Top = 450 Width = 5505 Begin VB.TextBox tPRt Alignment = 1 'Right Justify Height = 285 Left = 4470 TabIndex = 40 Text = "0" Top = 300 Width = 555 End Begin VB.TextBox tPRc Alignment = 1 'Right Justify Height = 285 Left = 2610 TabIndex = 39 Text = "0" Top = 300 Width = 555 End Begin VB.TextBox tPR Alignment = 1 'Right Justify Height = 255 Left = 1320 TabIndex = 38 Text = "0" Top = 300 Width = 555 End Begin VB.Label Label7 Caption = "ms" Height = 255 Left = 5100 TabIndex = 44 Top = 330 Width = 345 End Begin VB.Label Label3 Caption = "buffers, with tick" Height = 255 Left = 3240 TabIndex = 43 Top = 330 Width = 1245 End Begin VB.Label Label2 Caption = "ms, using" Height = 255 Left = 1920 TabIndex = 42 Top = 330 Width = 825 End Begin VB.Label Label1 Caption = "Total Buffer Size" Height = 255 Left = 90 TabIndex = 41 Top = 330 Width = 1275 End End Begin MSComCtl2.UpDown udSmooth Height = 315 Left = -72480 TabIndex = 36 Top = 1275 Width = 255 _ExtentX = 450 _ExtentY = 556 _Version = 393216 Value = 50 BuddyControl = "tSmooth" BuddyDispid = 196646 OrigLeft = 2610 OrigTop = 1260 OrigRight = 2865 OrigBottom = 1590 Max = 100 Min = 5 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.TextBox tUR Alignment = 1 'Right Justify Height = 315 Left = -73380 Locked = -1 'True TabIndex = 34 Text = "0" Top = 2295 Width = 450 End Begin VB.CheckBox chExtraInfo Caption = "Save Extra Non-Audio Inforamtion" Height = 225 Left = -72165 TabIndex = 33 Top = 2700 Width = 2760 End Begin VB.Frame Frame3 Caption = "Tempory Directory" Height = 795 Left = -74865 TabIndex = 30 Top = 1260 Width = 5505 Begin VB.TextBox tDir Height = 345 Left = 120 TabIndex = 31 Top = 270 Width = 5295 End End Begin VB.Frame Frame8 Caption = "Accu Control" Height = 2445 Left = 135 TabIndex = 29 Top = 465 Width = 3165 Begin VB.Frame Frame10 Caption = "Release" Height = 1275 Left = 1620 TabIndex = 47 Top = 765 Width = 1455 Begin VB.TextBox txtRTime Height = 285 Left = 540 Locked = -1 'True TabIndex = 55 Top = 315 Width = 570 End Begin VB.TextBox txtRLevel Height = 285 Left = 540 Locked = -1 'True TabIndex = 54 Top = 765 Width = 570 End Begin MSComCtl2.UpDown udRTime Height = 285 Left = 1125 TabIndex = 58 Top = 315 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 Value = 10 BuddyControl = "txtRTime" BuddyDispid = 196628 OrigLeft = 1125 OrigTop = 315 OrigRight = 1380 OrigBottom = 645 Max = 10000 Min = 10 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin MSComCtl2.UpDown udRLevel Height = 285 Left = 1125 TabIndex = 59 Top = 765 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 BuddyControl = "txtRLevel" BuddyDispid = 196629 OrigLeft = 1125 OrigTop = 720 OrigRight = 1380 OrigBottom = 1050 Max = 0 Min = -90 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.Label Label12 Caption = "Level:" Height = 240 Left = 45 TabIndex = 51 Top = 810 Width = 510 End Begin VB.Label Label11 Caption = "Time:" Height = 240 Left = 45 TabIndex = 50 Top = 360 Width = 510 End End Begin VB.Frame Frame9 Caption = "Attack" Height = 1275 Left = 90 TabIndex = 46 Top = 765 Width = 1455 Begin MSComCtl2.UpDown udATime Height = 285 Left = 1125 TabIndex = 56 Top = 315 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 Value = 10 BuddyControl = "txtATime" BuddyDispid = 196634 OrigLeft = 1125 OrigTop = 315 OrigRight = 1380 OrigBottom = 645 Max = 5000 Min = 10 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.TextBox txtALevel Height = 285 Left = 540 Locked = -1 'True TabIndex = 53 Top = 765 Width = 570 End Begin VB.TextBox txtATime Height = 285 Left = 540 Locked = -1 'True TabIndex = 52 Top = 315 Width = 570 End Begin MSComCtl2.UpDown udALevel Height = 285 Left = 1125 TabIndex = 57 Top = 765 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 BuddyControl = "txtALevel" BuddyDispid = 196633 OrigLeft = 1125 OrigTop = 765 OrigRight = 1380 OrigBottom = 1095 Max = 0 Min = -90 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.Label Label10 Caption = "Level:" Height = 240 Left = 45 TabIndex = 49 Top = 810 Width = 510 End Begin VB.Label Label9 Caption = "Time:" Height = 240 Left = 45 TabIndex = 48 Top = 360 Width = 510 End End Begin VB.CheckBox chAccuEnabled Caption = "Enabled" Height = 285 Left = 180 TabIndex = 45 Top = 360 Width = 1230 End End Begin VB.Frame Frame7 Caption = "Auto Gain Control" Height = 1635 Left = 3420 TabIndex = 27 Top = 450 Width = 2265 Begin MSComCtl2.UpDown udAGCAttackTime Height = 285 Left = 1935 TabIndex = 68 Top = 1260 Width = 240 _ExtentX = 423 _ExtentY = 503 _Version = 393216 BuddyControl = "txtAGCAttackTime" BuddyDispid = 196639 OrigLeft = 1935 OrigTop = 1260 OrigRight = 2190 OrigBottom = 1545 Max = 100 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 0 Enabled = -1 'True End Begin VB.TextBox txtAGCAttackTime Height = 285 Left = 1395 TabIndex = 66 Top = 1260 Width = 540 End Begin MSComCtl2.UpDown udAGCHighLevel Height = 285 Left = 1935 TabIndex = 65 Top = 945 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 BuddyControl = "txtAGCHighLevel" BuddyDispid = 196640 OrigLeft = 1935 OrigTop = 990 OrigRight = 2190 OrigBottom = 1275 Max = 0 Min = -90 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.TextBox txtAGCHighLevel Height = 285 Left = 1395 TabIndex = 63 Top = 945 Width = 540 End Begin VB.TextBox txtAGCLowLevel Height = 285 Left = 1395 TabIndex = 60 Top = 630 Width = 540 End Begin VB.CheckBox chAutoGainControl Caption = "Enabled" Height = 285 Left = 180 TabIndex = 28 Top = 270 Width = 1485 End Begin MSComCtl2.UpDown udAGCLowLevel Height = 285 Left = 1935 TabIndex = 61 Top = 630 Width = 255 _ExtentX = 450 _ExtentY = 503 _Version = 393216 BuddyControl = "txtAGCLowLevel" BuddyDispid = 196641 OrigLeft = 1890 OrigTop = 630 OrigRight = 2145 OrigBottom = 915 Max = 0 Min = -90 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.Label Label14 Caption = "AttackTime:" Height = 240 Left = 450 TabIndex = 67 Top = 1305 Width = 825 End Begin VB.Label Label8 Caption = "High Level:" Height = 240 Left = 450 TabIndex = 64 Top = 990 Width = 825 End Begin VB.Label Label13 Caption = "Low Level:" Height = 240 Left = 450 TabIndex = 62 Top = 675 Width = 825 End End Begin VB.TextBox tSmooth Alignment = 1 'Right Justify Height = 315 Left = -73020 TabIndex = 25 Text = "0" Top = 1275 Width = 540 End Begin VB.CheckBox chSmooth Caption = "Smooth all edit boundaries by crossfading" Height = 255 Left = -74820 TabIndex = 23 Top = 810 Width = 3270 End Begin VB.Frame Frame1 Caption = "Border" Height = 1230 Left = -74850 TabIndex = 17 Top = 1845 Width = 2685 Begin VB.OptionButton opBorderType Caption = "Type 3" Height = 285 Index = 3 Left = 1575 TabIndex = 22 Top = 540 Width = 825 End Begin VB.OptionButton opBorderType Caption = "Type 0" Height = 285 Index = 0 Left = 135 TabIndex = 21 Top = 225 Width = 825 End Begin VB.OptionButton opBorderType Caption = "Type 2" Height = 285 Index = 2 Left = 135 TabIndex = 20 Top = 540 Width = 825 End Begin VB.OptionButton opBorderType Caption = "Type 1" Height = 285 Index = 1 Left = 1590 TabIndex = 19 Top = 225 Value = -1 'True Width = 825 End Begin VB.OptionButton opBorderType Caption = "Type 4" Height = 285 Index = 4 Left = 135 TabIndex = 18 Top = 855 Width = 825 End End Begin VB.Frame Frame4 Caption = "Vertical scale" Height = 1755 Left = -72060 TabIndex = 10 Top = 360 Width = 2685 Begin VB.OptionButton opVSOrien Caption = "Left" Height = 255 Index = 2 Left = 120 TabIndex = 76 Top = 1320 Width = 855 End Begin VB.OptionButton opVSOrien Caption = "Right" Height = 255 Index = 1 Left = 120 TabIndex = 75 Top = 1080 Value = -1 'True Width = 855 End Begin VB.OptionButton opVStype Caption = "Normal Value" Height = 195 Index = 2 Left = 1350 TabIndex = 16 Top = 540 Width = 1275 End Begin VB.OptionButton opVStype Caption = "Samples" Height = 195 Index = 1 Left = 1350 TabIndex = 15 Top = 210 Width = 960 End Begin VB.CheckBox chVScaleGrid Caption = "Grid" Height = 195 Left = 120 TabIndex = 14 Top = 630 Value = 1 'Checked Width = 870 End Begin VB.CheckBox chVScale Caption = "Enabled" Height = 195 Left = 120 TabIndex = 13 Top = 315 Value = 1 'Checked Width = 900 End Begin VB.OptionButton opVStype Caption = "dB Value" Height = 195 Index = 3 Left = 1350 TabIndex = 12 Top = 870 Width = 1275 End Begin VB.CommandButton cmdFontV Caption = "Font..." Height = 330 Left = 1800 TabIndex = 11 Top = 1320 Width = 735 End End Begin VB.Frame Frame5 Caption = "Horizontal scale" Height = 1395 Left = -74850 TabIndex = 4 Top = 360 Width = 2685 Begin VB.OptionButton opHStype Caption = "Millisecond" Height = 195 Index = 2 Left = 1410 TabIndex = 9 Top = 630 Width = 1215 End Begin VB.OptionButton opHStype Caption = "Samples" Height = 195 Index = 1 Left = 1410 TabIndex = 8 Top = 330 Value = -1 'True Width = 975 End Begin VB.CheckBox chHScale Caption = "Enabled" Height = 195 Left = 120 TabIndex = 7 Top = 330 Value = 1 'Checked Width = 930 End Begin VB.CheckBox chHScaleGrid Caption = "Grid" Height = 195 Left = 135 TabIndex = 6 Top = 630 Value = 1 'Checked Width = 870 End Begin VB.CommandButton cmdFontH Caption = "Font..." Height = 330 Left = 1800 TabIndex = 5 Top = 960 Width = 735 End End Begin VB.PictureBox Color Height = 2460 Left = -70920 ScaleHeight = 2400 ScaleWidth = 1485 TabIndex = 3 Top = 540 Width = 1545 End Begin VB.CommandButton cmdColorChoice Caption = "Change Color" Height = 345 Left = -74865 TabIndex = 2 Top = 2655 Width = 3765 End Begin VB.ListBox lstColors Height = 2010 ItemData = "frmSetup.frx":008C Left = -74820 List = "frmSetup.frx":00CA TabIndex = 1 Top = 510 Width = 3765 End Begin MSComCtl2.UpDown udUR Height = 315 Left = -72885 TabIndex = 35 Top = 2295 Width = 255 _ExtentX = 450 _ExtentY = 556 _Version = 393216 Value = 1 BuddyControl = "tUR" BuddyDispid = 196622 OrigLeft = 2205 OrigTop = 2205 OrigRight = 2445 OrigBottom = 2520 Max = 10000 SyncBuddy = -1 'True Wrap = -1 'True BuddyProperty = 65547 Enabled = -1 'True End Begin VB.Label Label4 Caption = "Undo/Redo Count" Height = 225 Left = -74775 TabIndex = 32 Top = 2340 Width = 1455 End Begin VB.Label Label6 Caption = "ms" Height = 225 Left = -72030 TabIndex = 26 Top = 1305 Width = 435 End Begin VB.Label Label5 Caption = "Crossfade Time" Height = 225 Left = -74235 TabIndex = 24 Top = 1305 Width = 1245 End End Begin MSComDlg.CommonDialog CommonDialog1 Left = 225 Top = 1710 _ExtentX = 847 _ExtentY = 847 _Version = 393216 End Attribute VB_Name = "frmSetup" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Dim Colors As AudioEditor2Colors Dim Recorder As AudioEditor2Recorder Private Sub chAccuEnabled_Click() frmDialog.AudioEditor1.Recorder.AccuEnabled = chAccuEnabled.Value If chAccuEnabled.Value = 0 Then Frame9.Enabled = False Frame10.Enabled = False txtATime.Enabled = False txtRTime.Enabled = False txtALevel.Enabled = False txtRLevel.Enabled = False udATime.Enabled = False udRTime.Enabled = False udALevel.Enabled = False udRLevel.Enabled = False Label9.Enabled = False Label10.Enabled = False Label11.Enabled = False Label12.Enabled = False Else Frame9.Enabled = True Frame10.Enabled = True txtATime.Enabled = True txtRTime.Enabled = True txtALevel.Enabled = True txtRLevel.Enabled = True udATime.Enabled = True udRTime.Enabled = True udALevel.Enabled = True udRLevel.Enabled = True Label9.Enabled = True Label10.Enabled = True Label11.Enabled = True Label12.Enabled = True End If End Sub Private Sub chAutoGainControl_Click() Recorder.AGCEnabled = chAutoGainControl.Value If chAutoGainControl.Value = 0 Then udAGCAttackTime.Enabled = False txtAGCAttackTime.Enabled = False udAGCLowLevel.Enabled = False txtAGCLowLevel.Enabled = False udAGCHighLevel.Enabled = False txtAGCHighLevel.Enabled = False 'Label8.Enabled = False frmDialog.Toolbar1.Buttons(31).Value = tbrUnpressed Else udAGCAttackTime.Enabled = True txtAGCAttackTime.Enabled = True udAGCLowLevel.Enabled = True txtAGCLowLevel.Enabled = True udAGCHighLevel.Enabled = True txtAGCHighLevel.Enabled = True frmDialog.Toolbar1.Buttons(31).Value = tbrPressed 'Label8.Enabled = True End If End Sub Private Sub chHScale_Click() frmDialog.AudioEditor1.ScaleX.Visible = chHScale.Value End Sub Private Sub chHScaleGrid_Click() frmDialog.AudioEditor1.ScaleY.Grid = chHScaleGrid.Value End Sub Private Sub chVScale_Click() frmDialog.AudioEditor1.ScaleY.Visible = chVScale.Value End Sub Private Sub chVScaleGrid_Click() frmDialog.AudioEditor1.ScaleX.Grid = chVScaleGrid.Value End Sub Private Sub chExtraInfo_Click() frmDialog.AudioEditor1.FileInfo.SaveExtraInfoEnabled = chExtraInfo.Value End Sub Private Sub chMB_Click() frmDialog.AudioEditor1.MarkerBarEnabled = chMB.Value End Sub Private Sub chMS_Click() frmDialog.AudioEditor1.MarkerBackgroundEnabled = chMS.Value End Sub Private Sub chSmooth_Click() If chSmooth.Value = 1 Then tSmooth.Enabled = True udSmooth.Enabled = True Else tSmooth.Enabled = False udSmooth.Enabled = False End If frmDialog.AudioEditor1.Transform.SmoothEnabled = chSmooth.Value End Sub Private Sub cmdColorChoice_Click() 'this sub starts on clicking the "Change Color" button Dim OldCol, NewCol As OLE_COLOR 'declares the variable, responsible for the new and old colors OldCol = lstColors.ItemData(lstColors.ListIndex) 'gets the oldcolor value CommonDialog1.Color = OldCol 'sets the common dialog color to old color CommonDialog1.DialogTitle = "Choice Color" 'sets the caption of the dialog window CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen 'choose the type of the dialog window CommonDialog1.ShowColor 'show the color setup window NewCol = CommonDialog1.Color 'gets the new color lstColors.ItemData(lstColors.ListIndex) = NewCol Color.BackColor = lstColors.ItemData(lstColors.ListIndex) 'changes the backcolor to the chosen one and set the color of the marked element of the list to the new color If lstColors.ListIndex = 0 Then Colors.DigitalWaveform = lstColors.ItemData(0) If lstColors.ListIndex = 1 Then Colors.AnalogWaveform = lstColors.ItemData(1) If lstColors.ListIndex = 2 Then Colors.Background = lstColors.ItemData(2) If lstColors.ListIndex = 3 Then Colors.CenterLine = lstColors.ItemData(3) If lstColors.ListIndex = 4 Then Colors.SelectDigitalWaveform = lstColors.ItemData(4) If lstColors.ListIndex = 5 Then Colors.SelectAnalogWaveform = lstColors.ItemData(5) If lstColors.ListIndex = 6 Then Colors.SelectBackground = lstColors.ItemData(6) If lstColors.ListIndex = 7 Then Colors.SelectCenterLine = lstColors.ItemData(7) If lstColors.ListIndex = 8 Then Colors.Grid = lstColors.ItemData(8) If lstColors.ListIndex = 9 Then Colors.Cursor = lstColors.ItemData(9) If lstColors.ListIndex = 10 Then Colors.PlayCursor = lstColors.ItemData(10) If lstColors.ListIndex = 11 Then Colors.Boundary = lstColors.ItemData(11) If lstColors.ListIndex = 12 Then Colors.Scales = lstColors.ItemData(12) If lstColors.ListIndex = 13 Then Colors.Font = lstColors.ItemData(13) If lstColors.ListIndex = 14 Then Colors.CueMarker = lstColors.ItemData(14) If lstColors.ListIndex = 15 Then Colors.RangeMarker = lstColors.ItemData(15) If lstColors.ListIndex = 16 Then Colors.RangeMarkerBackground = lstColors.ItemData(16) End Sub Private Sub cmdFontH_Click() Dim font1 As New StdFont 'declares the variable of the font type CommonDialog1.DialogTitle = "Choice Font" 'sets the dialog window caption CommonDialog1.Flags = cdlCFBoth 'and the type of the dialog window Set font1 = frmDialog.AudioEditor1.ScaleX.Font 'gets the font1 'setting up the font1 parameters for the dialog window CommonDialog1.FontName = font1.Name CommonDialog1.FontBold = font1.Bold CommonDialog1.FontItalic = font1.Italic CommonDialog1.FontSize = font1.Size CommonDialog1.FontStrikethru = font1.Strikethrough CommonDialog1.FontUnderline = font1.Underline CommonDialog1.ShowFont 'and show the dialog window to set up the font 'sets the new font1 parameters font1.Name = CommonDialog1.FontName font1.Bold = CommonDialog1.FontBold font1.Italic = CommonDialog1.FontItalic font1.Size = CommonDialog1.FontSize font1.Strikethrough = CommonDialog1.FontStrikethru font1.Underline = CommonDialog1.FontUnderline Set frmDialog.AudioEditor1.ScaleX.Font = font1 'set the new font End Sub Private Sub cmdFontV_Click() Dim font2 As New StdFont 'declares the variable of the font type CommonDialog1.DialogTitle = "Choice Font" 'sets the common dialogs caption CommonDialog1.Flags = cdlCFBoth 'sets the type of the dialog interface Set font2 = frmDialog.AudioEditor1.ScaleY.Font 'gets the font2 value 'setting up the font1 parameters for the dialog window CommonDialog1.FontName = font2.Name CommonDialog1.FontBold = font2.Bold CommonDialog1.FontItalic = font2.Italic CommonDialog1.FontSize = font2.Size CommonDialog1.FontStrikethru = font2.Strikethrough CommonDialog1.FontUnderline = font2.Underline CommonDialog1.ShowFont 'and show the dialog window to set up the font 'sets the new font2 parameters font2.Name = CommonDialog1.FontName font2.Bold = CommonDialog1.FontBold font2.Italic = CommonDialog1.FontItalic font2.Size = CommonDialog1.FontSize font2.Strikethrough = CommonDialog1.FontStrikethru font2.Underline = CommonDialog1.FontUnderline Set frmDialog.AudioEditor1.ScaleY.Font = font2 'set the new font End Sub Private Sub Form_Load() 'this sub starts on loading the current form Set Colors = frmDialog.AudioEditor1.Colors Set Recorder = frmDialog.AudioEditor1.Recorder 'forms the list of items lstColors.ItemData(0) = Colors.DigitalWaveform lstColors.ItemData(1) = Colors.AnalogWaveform lstColors.ItemData(2) = Colors.Background lstColors.ItemData(3) = Colors.CenterLine lstColors.ItemData(4) = Colors.SelectDigitalWaveform lstColors.ItemData(5) = Colors.SelectAnalogWaveform lstColors.ItemData(6) = Colors.SelectBackground lstColors.ItemData(7) = Colors.SelectCenterLine lstColors.ItemData(8) = Colors.Grid lstColors.ItemData(9) = Colors.Cursor lstColors.ItemData(10) = Colors.PlayCursor lstColors.ItemData(11) = Colors.Boundary lstColors.ItemData(12) = Colors.Scales lstColors.ItemData(13) = Colors.Font lstColors.ItemData(14) = Colors.CueMarker lstColors.ItemData(15) = Colors.RangeMarker lstColors.ItemData(16) = Colors.RangeMarkerBackground lstColors.ListIndex = 0 'sets the chosen item to the zero numbered opBorderType(frmDialog.AudioEditor1.TypeBorder).Value = True 'marks the Type0 opHStype(frmDialog.AudioEditor1.ScaleX.Type).Value = True 'Type3 opVStype(frmDialog.AudioEditor1.ScaleY.Type).Value = True 'and Type4 radio buttons in the "Border" frame opVSOrien(frmDialog.AudioEditor1.ScaleY.Orientation).Value = True chHScaleGrid.Value = Abs(frmDialog.AudioEditor1.ScaleY.Grid) 'Sets the value of the "Grid" and "Enabled" checkboxes in the "Vertical" and "Horizontal" frames chVScaleGrid.Value = Abs(frmDialog.AudioEditor1.ScaleX.Grid) chHScale.Value = Abs(frmDialog.AudioEditor1.ScaleX.Visible) chVScale.Value = Abs(frmDialog.AudioEditor1.ScaleY.Visible) tDir.Text = frmDialog.AudioEditor1.TempDirectory tPR.Text = frmDialog.AudioEditor1.DeviceInput.BufferSize tPRt.Text = frmDialog.AudioEditor1.DeviceInput.TimerInterval tPRc.Text = frmDialog.AudioEditor1.DeviceInput.BufferCount udUR.Value = frmDialog.AudioEditor1.UndoRedoCount chExtraInfo.Value = Abs(frmDialog.AudioEditor1.FileInfo.SaveExtraInfoEnabled) chSmooth.Value = Abs(frmDialog.AudioEditor1.Transform.SmoothEnabled) udSmooth.Value = frmDialog.AudioEditor1.Transform.SmoothTime chMB.Value = Abs(frmDialog.AudioEditor1.MarkerBarEnabled) chMS.Value = Abs(frmDialog.AudioEditor1.MarkerBackgroundEnabled) opRecVisType(frmDialog.AudioEditor1.RecordVisualizationType).Value = True chAccuEnabled.Value = frmDialog.AudioEditor1.Recorder.AccuEnabled udATime.Value = Recorder.AccuAttackTime udRTime.Value = Recorder.AccuReleaseTime udALevel.Value = Recorder.AccuAttackLevel udRLevel.Value = Recorder.AccuReleaseLevel udAGCLowLevel.Value = Recorder.AGCLowLevel udAGCHighLevel.Value = Recorder.AGCHighLevel udAGCAttackTime.Value = Recorder.AGCAttackTime chAutoGainControl.Value = Abs(Recorder.AGCEnabled) chAccuEnabled_Click End Sub Private Sub lstColors_Click() 'this sub starts on clicking on one of the list elements Color.BackColor = lstColors.ItemData(lstColors.ListIndex) 'set the back color to the current, owned by the chosen element End Sub Private Sub opOrientation_Click(Index As Integer) End Sub Private Sub opRecVisType_Click(Index As Integer) frmDialog.AudioEditor1.RecordVisualizationType = Index End Sub Private Sub opBorderType_Click(Index As Integer) 'this sub starts on clicking the "Type" radio button frmDialog.AudioEditor1.TypeBorder = Index 'sets the border type to the index valuee End Sub Private Sub opHStype_Click(Index As Integer) 'this sub starts on clicking the radio buttons in the "Horizontal" frame frmDialog.AudioEditor1.ScaleX.Type = Index 'sets the scale x type to the index value End Sub Private Sub opVSOrien_Click(Index As Integer) frmDialog.AudioEditor1.ScaleY.Orientation = Index End Sub Private Sub opVStype_Click(Index As Integer) 'this sub starts on clicking the radio buttons in the "Vertical" frame frmDialog.AudioEditor1.ScaleY.Type = Index 'sets the scale x type to the index value End Sub Private Sub tDir_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then frmDialog.AudioEditor1.TempDirectory = tDir.Text End If End Sub Private Sub tPR_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then frmDialog.AudioEditor1.DeviceInput.BufferSize = tPR.Text frmDialog.AudioEditor1.DeviceOutput.BufferSize = tPR.Text End If End Sub Private Sub tPRc_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then frmDialog.AudioEditor1.DeviceInput.BufferCount = tPRc.Text frmDialog.AudioEditor1.DeviceOutput.BufferCount = tPRc.Text End If End Sub Private Sub tPRt_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then frmDialog.AudioEditor1.DeviceInput.TimerInterval = tPRt.Text frmDialog.AudioEditor1.DeviceOutput.TimerInterval = tPRt.Text End If End Sub Private Sub udAGCHighLevel_Change() Recorder.AGCHighLevel = udAGCHighLevel.Value End Sub Private Sub udAGCLowLevel_Change() Recorder.AGCLowLevel = udAGCLowLevel.Value End Sub Private Sub udAGCAttackTime_Change() Recorder.AGCAttackTime = udAGCAttackTime.Value End Sub Private Sub udALevel_Change() Recorder.AccuAttackLevel = udALevel.Value End Sub Private Sub udATime_Change() Recorder.AccuAttackTime = udATime.Value End Sub Private Sub udRLevel_Change() Recorder.AccuReleaseLevel = udRLevel.Value End Sub Private Sub udRTime_Change() Recorder.AccuReleaseTime = udRTime.Value End Sub Private Sub udSmooth_Change() frmDialog.AudioEditor1.Transform.SmoothTime = udSmooth.Value End Sub Private Sub udUR_DownClick() frmDialog.AudioEditor1.UndoRedoCount = udUR.Value End Sub Private Sub udUR_UpClick() frmDialog.AudioEditor1.UndoRedoCount = udUR.Value End Sub